//
//  NSNumber+Tools.h
//  Pods
//
//  Created by jiaxuzhou on 2017/7/23.
//
//

#import <Foundation/Foundation.h>
#import "NSObject+Tools.h"

/// 判断是否是NSNumber类型
#define MPT_Number_Class(num) MPT_Object_Is_Class(num,[NSNumber class])

/// NSNumber 有效
#define MPT_Number_Is_Valid(num) ((MPT_Object_Not_Null(num)) && (MPT_Number_Class(num)) &&(![((NSNumber*)num) isEqualToNumber:[NSDecimalNumber notANumber]]))

/// NSNumber 无效
#define MPT_Number_Not_Valid(num) ((MPT_Object_Is_Null(num)) || (!MPT_Number_Class(num)) || ([((NSNumber*)num) isEqualToNumber:[NSDecimalNumber notANumber]]))


@interface NSNumber (Tools)

@end
